﻿using System.Configuration;

namespace ErrorDumper.Configuration {
    public class ProvidingConfigurationSection : ConfigurationSection {
        private const string _sectionName = "errorDumper/providing";

        public static ProvidingConfigurationSection GetSection() {
            return (ProvidingConfigurationSection)
                ConfigurationManager.GetSection(_sectionName);
        }

        [ConfigurationProperty("providers")]
        public ProviderConfigurationElementCollection Providers {
            get { return (ProviderConfigurationElementCollection)this["providers"]; }
        }
    }
}
